﻿#ifndef DIALOGLOGIN_H
#define DIALOGLOGIN_H

#include <QDialog>

namespace Ui {
class DialogLogin;
}

class DialogLogin : public QDialog
{
    Q_OBJECT

public:
    explicit DialogLogin(QWidget *parent = nullptr);
    ~DialogLogin();

    void closeEvent(QCloseEvent *event) override;


private slots:
    void on_comboBoxIPAddress_currentIndexChanged(int index);

    void on_btnOK_clicked();

    void on_btnCancel_clicked();

signals:
    void closeProgram();
    void InitDatabase();

private:
    Ui::DialogLogin *ui;

private:
    int IPAddIndex = 0;

};

#endif // DIALOGLOGIN_H
